<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>热门搜索管理</h3>
      <ul class="tab-base">
        <li><a href="index.php?act=wp_hotSearch&op=search_list" ><span>热门搜索列表</span></a></li>
        <li><a href="javascript:;" class="current"><span>添加热门搜索</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form id="add_form" enctype="multipart/form-data" method="post"  action="index.php?act=wp_hotSearch&op=search_save">
   
    <table class="table tb-type2">
      <tbody>
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="class_name">关键字：</label></td>
        </tr>
        <tr class="noborder">
        <input type="hidden" name="search_id" value="<?php echo $output['hotsearch_info']['search_id']?>"/>
          <td class="vatop rowform"><input type="text" name="search_keyword" id="search_keyword" class="txt" value="<?php echo $output['hotsearch_info']['search_keyword']?>"></td>
          
        </tr>
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="class_name">排序：</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" name="sort" id="sort" class="txt" value="<?php echo $output['hotsearch_info']['sort']?>"></td>
        </tr>
  
      </tbody>
      <tfoot>
        <tr>
          <td colspan="2"><a id="submit" href="javascript:void(0)" class="btn"><span><?php echo $lang['nc_submit'];?></span></a></td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
<script type="text/javascript">


$(document).ready(function(){
    $('#submit').click(function(){
		/* var gt_class_name=$("#gt_class_name").val();
		var gt_class_num=$("#gt_class_num").val();
		if(gt_class_name=="" || gt_class_num==""){
			alert("参数不足");
			return false;
		} */
        
        $('#add_form').submit();
    });
});

</script>
